﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<GabageFactory.Models.Factory>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	创建公司
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>创建公司</h2>

    <% using (Html.BeginForm()) {%>
        <%= Html.ValidationSummary(true) %>
        
        <fieldset>
            <legend>公司信息</legend>
            
            <%= Html.HiddenFor(model => model.Id) %>
            
            <div class="editor-label" style="margin-top:25px">
                公司名称:
                <%= Html.TextBoxFor(model => model.Name) %>
                <%= Html.ValidationMessageFor(model => model.Name) %>
            </div>

            <div class="editor-label">
                公司描述:
            </div>
            <div class="editor-field">
                <%= Html.TextAreaFor(model => model.Description, new { cols = "80" , rows = "20" })%>
                <%= Html.ValidationMessageFor(model => model.Description) %>
            </div>
            
            <div style="margin-top:25px">
                <input type="submit" value="提 交" />
            </div>
        </fieldset>

    <% } %>

    <div>
        <%= Html.ActionLink("返回公司列表", "Index") %>
    </div>

</asp:Content>

